
Friuts = {
   '苹果':12.3,
   '草莓':4.5,
    '香蕉':6.3,
    '葡萄':5.8,
    '橘子':6.4,
    '樱桃':15.8
}
info = {
    '小明': {
        'fruits': {'苹果':4, '草莓':13, '香蕉':10},
        'money': ""
    },
    '小刚': {
        'fruits': {'葡萄':19, '橘子':12, '樱桃':30},
        'money': ""
    }
}
for T in info.keys():
    s = 0
    for i,m in info[T]['fruits'].items():
            s += m * Friuts[i]
    info[T]['money'] = s
print(info)






